//
//  MeDetailViewController.m
//  Hero
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 刘永庆. All rights reserved.
//

#import "MeDetailViewController.h"

@interface MeDetailViewController ()

@property (weak, nonatomic) IBOutlet UIWebView *webView;

@end

@implementation MeDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationItem.title = @"召唤师查询";
    NSString *daquStr = [self.qu stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
    NSString *nameStr = [self.name stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]];
    self.navigationController.navigationBar.backgroundColor = [UIColor blueColor];
    NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://zdl.mbox.duowan.com/phone/playerDetailNew.php?sn=%@&target=%@&v=108&OSType=iOS8.3&versionName=2.2.5",daquStr,nameStr]];
    NSURLRequest *requ = [NSURLRequest requestWithURL:url];
    self.webView.scrollView.bounces = NO;
    [self.webView loadRequest:requ];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
   
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
